/**
 * Copyright (c) 2016 Lenovo Group
 * All Rights Reserved.
 * 
 * Project Name:lmrp-base
 * Create Time: 2016年1月27日 上午10:21:13
 */
package com.lenovo.lmrp.base.mq;

/**
 * @author zhangzhenga
 *
 */
public enum MQAppGatewayEvent {

	LOGIN(1001), LOGOUT(1002), FORCELOGOUT(1003),
	GRAB(1004),ACCEPT(1005);

	private int event;

	private MQAppGatewayEvent(int event) {
		this.event = event;
	}

	public int getEvent() {
		return this.event;
	}

	public static MQAppGatewayEvent getMQAppGatewayEvent(int event) {
		for (MQAppGatewayEvent ev : MQAppGatewayEvent.values())
			if (ev.getEvent() == event)
				return ev;
		return null;
	}
}
